from math import sqrt

class MyMath:
    def add(self, x, y):
        return x+y

    def sub(self, x, y):
        return x-y

    def mul(self, x, y):
        return x*y

    def div(self, x, y):
        return x/y

    def exa_div(self, x, y):
        return x//y

    def take_re(self, x, y):
        return x%y

    def in_power(self, x, y):
        return x**y

    def ex_root(self, x):
        return sqrt(x)

class Cook:
    def cut(self):
        print("切菜")

    def stew(self):
        print("烹调食材")


class kitchen:
    def pan(self):
        print("锅")

    def dishware(self):
        print("餐具")

if __name__ == "__main__":
    math = MyMath()
    print(math.add(1, 2))
    print(math.sub(3, 2))
    print(math.mul(2, 3))
    print(math.div(2, 4))
    print(math.exa_div(2, 4))
    print(math.take_re(2, 4))
    print(math.in_power(2, 4))
    print(math.ex_root(4))

    cooker = Cook()
    cooker.stew()
    chef = kitchen()
    chef.dishware()
